From 40321d331fca7b101b16df29d152ae157904e7e9 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 6 Jun 2018 05:33:30 +0200 Subject: [PATCH] x11: Remove useless check The check survived from GTK2 when that function could still return GdkPixmap and GdkFont objects and was accompanied by this comment: /* We may receive events such as NoExpose/GraphicsExpose * and ShmCompletion for pixmaps */ --- gdk/x11/gdkeventsource.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gdk/x11/gdkeventsource.c b/gdk/x11/gdkeventsource.c index f5c68a5728..6faecd7391 100644 --- a/gdk/x11/gdkeventsource.c +++ b/gdk/x11/gdkeventsource.c @@ -83,9 +83,6 @@ gdk_event_source_get_filter_surface (GdkEventSource *event_source, surface = gdk_x11_surface_lookup_for_display (event_source->display, xevent->xany.window); - if (surface && !GDK_IS_SURFACE (surface)) - surface = NULL; - return surface; } -- 2.30.2